"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class Queue {
    constructor() {
        this.jobs = [];
    }
    isEmpty() {
        return this.jobs.length === 0;
    }
    pop() {
        return this.jobs.pop();
    }
    shift() {
        return this.jobs.shift();
    }
    peek() {
        return this.jobs.length === 0 ? null : this.jobs[0];
    }
    push(job) {
        this.jobs.push(job);
    }
    size() {
        return this.jobs.length;
    }
}
exports.default = Queue;
